<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/page/common/public.jspf"%>
<%@ page import="com.hengpeng.itfints.tools.PageUtil" %>
<% 
	PageUtil pageUtil = (PageUtil)request.getAttribute("PageUtil");
%>
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>战略联盟产品列表</title>
<link rel="stylesheet" type="text/css" href="${path}/css/base.css"/>
<link rel="stylesheet" type="text/css" href="${path}/css/layout.css"/>
<script src="${path }/js/common/jquery-1.4.2.min.js"></script>
<script src="${path }/js/common/helper.js?v=${v}"></script>
<script src="${path }/js/common/cookie.js?v=${v}"></script>
<style type="text/css">
.borrow_title{color: #333;max-width:300px;display: block;padding-left: 14px;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;line-height:36px;text-align: left;}
</style>
</head>

<body bgcolor="#f9f9f9">
        <!-- head -->
		<c:import url="../include/top.jsp">
			<c:param name="type" value="zllm"></c:param>
		</c:import>
		
		<div class="youarehere">
			<div class="localtion"><a href="${path }/">首页</a> > 战略列表</div>
		</div>
		
<!--主体  -->
<div class="wrap f_yh">
<div class="ty_line box" style="margin-bottom: 50px;overflow: auto;background: #fff">
   	<div class="dh_pub_list" id="tags">
           <ul>
               <li><a href="javascript:void(0);" class="overbg">综合排序</a></li>
           </ul>
       </div>
	<div class="clearfix"></div>
	<div>
		<table cellpadding="0" cellspacing="0" class="clubTable" width="100%">
			<tr class="borderBottom_dd">
				<td>产品名称</td>
				<td style="width: 13%">发行银行</td>
				<td style="width: 12%">起销日期</td>
				<td style="width: 10%">付息周期</td>
				<td style="width: 20%">委托起始金额</td>
				<td style="width: 10%">操作</td>
			</tr>
			<c:forEach items="${dataList}" var="auto" varStatus="sta">
				<tr class="<c:if test="${sta.index%2 eq 0 }">borderBottom_d1</c:if>" 
					onmouseover="this.className='borderBottom_d2 over_bgcolor'" 
					onmouseout="this.className='<c:if test="${sta.index%2 eq 0 }">borderBottom_d1</c:if>'">
					<td align="left">
						<p class="borrow_title">
							${auto.name }
						</p>
					</td>
					<td>
						<p>${auto.bank.text}</p>
					</td>
					<td>
						<p>
							<fmt:formatDate value="${auto.xsbegindate}" pattern="yyyy/MM/dd"/>-
	                        <fmt:formatDate value="${auto.xsenddate}" pattern="yyyy/MM/dd"/>
						</p>
					</td> 
					<td>
						<p>${auto.fszq}</p>
					</td>
					<td>
						<p>${auto.wtbeginmoney}元</p>
					</td>
					<td>
						<input type="button" class="orangeBtn" onclick="detail('${auto.id}')"  value="查看" />
					</td>
				</tr>
			</c:forEach>
		</table>	
	</div>
	<div class="paginations">
		<div class="page-bottom">
			记录总数<%=pageUtil.getTotalCount()%>条 当前页/总页数<%=pageUtil.getCurrentPage()%> 
			/<%=pageUtil.getPageCount()%>每页显示<%=pageUtil.getPageSize()%>条 
			<a onclick="javascript:go(1,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_frist" class="page-start"><span>首页</span></a> 
			<a onclick="javascript:go(<%=(pageUtil.getCurrentPage() - 1)%>,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_pre" class="page-prev"><span>上一页</span></a> 
			<a onclick="javascript:go(<%=(pageUtil.getCurrentPage() + 1)%>,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_next" class="page-next"><span>下一页</span></a> 
			<a onclick="javascript:go(<%=pageUtil.getPageCount()%>,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_last" class="page-end"><span>末页</span></a> 
		</div>
	</div>
</div>
</div>
<!--主体-->
		
<!--foot-->
<c:import url="../include/foot.jsp"></c:import>
<!--foot--> 
<script type="text/javascript">
//分页
function go (page, total) {
	if (page > total) {
		page = total;
	}
	window.location.href = "<%=request.getContextPath()%>/bankProduct/productlist.htm?curPage="+page+"";
}
function detail (id) {
	window.location.href = "<%=request.getContextPath()%>/bankProduct/get.htm?id="+id+"";
}
</script> 
</body>
</html>